 import  httpService  from "./http.service";
 class UserService {
   async getUsers(pageNumber, pageSize) {
     const url = `user/users/${pageNumber}/${pageSize}`;
     return httpService.get(url);
   }

   async createUser(user) {
     return httpService.post("user/create", user);
   }

   async updateUser(user) {
     return httpService.put("user/update", user);
   }

   async deleteUser(userId) {
     return httpService.delete(`user/users/${userId}`);
   }
}

export const userService = new UserService();